using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.FIM
{
    using System;
    using System.Collections.Generic;

    [Table("FimReturnDtl"), DataContract]
    public class ReturnDtl
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ReturnDtlsId", ResourceType = typeof(Resources.MoneyReturnDtlsResource))]
        public int ReturnDtlId { get; set; }

		[ForeignKey("Return")]
		[DataMember, Display(Name = "ReturnId", ResourceType = typeof(Resources.MoneyReturnDtlsResource))]
        public Nullable<int> ReturnId { get; set; }

        [ForeignKey("PayRequestDtl")]
		[DataMember, Display(Name = "MoneyReqDtlsId", ResourceType = typeof(Resources.MoneyReturnDtlsResource))]
        public Nullable<int> PayReqDtlId { get; set; }

		[DataMember, Display(Name = "Amount", ResourceType = typeof(Resources.MoneyReturnDtlsResource))]
        public Nullable<decimal> Amount { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MoneyReturnDtlsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MoneyReturnDtlsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MoneyReturnDtlsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MoneyReturnDtlsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MoneyReturnDtlsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual Return Return { get; set; }

        public virtual PayRequestDtl PayRequestDtl { get; set; }
    }
}